package com.qf.student.controller;

import com.qf.student.response.R;
import com.qf.student.service.ISystemService;
import com.qf.student.vo.input.LoginInputVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author YaoJiXing
 * created 2022/11/21 20:56
 */
@RestController
@RequestMapping("/sys")
public class SystemController {

    @Autowired
    private ISystemService systemService;

    @RequestMapping("/dologin")
    public R doLogin(LoginInputVo inputVo) {
        return systemService.doLogin(inputVo);
    }

    @RequestMapping("/getLastLoginTime")
    public R getLastLoginTime(Integer userid) {
        return systemService.getLastLoginTime(userid);
    }

}
